#ifndef VOLUMETOOL_H
#define VOLUMETOOL_H

#include <QWidget>
#include <QObject>
#include <QPaintEvent>
namespace Ui {
class VolumeTool;
}

class VolumeTool : public QWidget
{
    Q_OBJECT

public:
    explicit VolumeTool(QWidget *parent = nullptr);
    void paintEvent(QPaintEvent *event);
    bool eventFilter(QObject* object, QEvent* event);
    void setVolume();
    void onSilenceBtnClicked();
    ~VolumeTool();
signals:
void setSilence(bool);
void setMusicVolume(int);

private:
    Ui::VolumeTool *ui;
    bool isMuted;
    int  volumeRatio;
};

#endif // VOLUMETOOL_H
